package com.dms.modules.community.dto;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.time.LocalDateTime;
import java.util.List;

/**
 * 社区帖子详情数据传输对象
 */
@Data
@ApiModel(value = "社区帖子详情DTO", description = "社区帖子详情数据传输对象")
public class CommunityPostDetailDTO {
    
    @ApiModelProperty("帖子ID")
    private Long id;
    
    @ApiModelProperty("发帖用户ID")
    private Long userId;
    
    @ApiModelProperty("发帖用户昵称")
    private String userNickname;
    
    @ApiModelProperty("发帖用户头像")
    private String userAvatar;
    
    @ApiModelProperty("标题")
    private String title;
    
    @ApiModelProperty("内容")
    private String content;
    
    @ApiModelProperty("图片URL列表")
    private List<String> images;
    
    @ApiModelProperty("浏览量")
    private Integer viewCount;
    
    @ApiModelProperty("点赞数")
    private Integer likeCount;
    
    @ApiModelProperty("评论数")
    private Integer commentCount;
    
    @ApiModelProperty("状态：0-草稿，1-已发布，2-已删除")
    private Integer status;
    
    @ApiModelProperty("创建时间")
    private LocalDateTime createTime;
    
    @ApiModelProperty("更新时间")
    private LocalDateTime updateTime;
    
    @ApiModelProperty("当前用户是否点赞")
    private Boolean isLiked;
    
    @ApiModelProperty("当前用户是否收藏")
    private Boolean isFavorited;
} 